// 采购状态
const purchaseStatus=[
  {
    name:'已下单',
    id:1,
  },
  {
    name:'到货质检',
    id:2,
  },
  {
    name:'已入库',
    id:3,
  },
  {
    name:'已完成',
    id:4,
  },
]
// 质检单状态
const qualityStatus=[
  {
    name:'待质检',
    id:1,
  },
  {
    name:'已完成',
    id:2,
  }
]
// 退货单状态
const returnedStatus=[
  {
    name:'待发货',
    id:1,
  },
  {
    name:'待签收',
    id:2,
  },
  {
    name:'待发货',
    id:3,
  },
  {
    name:'已完成',
    id:4,
  },
]

export const getDataByType = type => {
  if(type =='purchaseStatus'){
    return purchaseStatus;
  }else if(type=='qualityStatus'){
    return qualityStatus;
  }else if(type=='returnedStatus'){
    return returnedStatus;
  }
}
